package org.csu.demopetstore.Persistence;

import org.apache.ibatis.annotations.Param;
import org.csu.demopetstore.entity.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {

    Product getProduct(@Param("productId")String productId);
    List<Product> getProductList(@Param("categoryId")String categoryId);
    List<Product> searchProduct(String keyword);
}
